package com.hotel.service;

import com.hotel.entity.PageBean;
import com.hotel.entity.Storey;
import com.hotel.exception.EntityException;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface StoreyService {

    // 获取所有楼层和id
    List<Storey> getFloors() throws SQLException;

    // 新增或更新
    void save(Storey storey) throws Exception;

    Storey getById(String id) throws SQLException, EntityException;

    // 根据前端设置的条件获取
    PageBean<Storey> getList(Map<String, Object> map) throws SQLException;

    // 删除用户
    void delete(String id) throws SQLException, EntityException;

}
